import request from '@/utils/request'

export function getPageList(data) {
    return request({
        url: '/file/getPageList',
        method: 'post',
        data: data
    })
}


export function fileDownload(id) {
    return request({
        url: '/file/downloadLocal?id=' + id,
        method: 'get',
        responseType: "blob"
    })
}

export function fileDelete(id) {
    return request({
        url: '/file/deleteFile/' + id,
        method: 'post',
    })
}

export function fileMerge(data) {
    return request({
        url: '/file/merge',
        method: 'post',
        data: data
    })
}

export function fileQuery(data) {
    return request({
        url: '/file/query',
        method: 'post',
        data: data
    })
}